package com.tensquare.friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author zzb
 * @version 1.0
 * @create 2020/12/24 12:50
 */
@FeignClient("tensquare-user")
@Component
public interface UserClient {
    //增加关注数
    @PostMapping("/user/incfollow/{userid}/{x}")
    void incFollow(@PathVariable("userid") String userid,@PathVariable("x") int x);

    //增加粉丝数
    @PostMapping("/user/incfans/{userid}/{x}")
    void incFans(@PathVariable("userid") String userid,@PathVariable("x") int x);
}
